home *** CD-ROM | disk | FTP | other *** search
- property pFile
-
- on mouseEnter me
- sprite(me.spriteNum).member = "install_knop_R"
- end
-
- on mouseLeave me
- sprite(me.spriteNum).member = "install_knop_N"
- end
-
- on mouseDown me
- sprite(me.spriteNum).member = "install_knop_D"
- end
-
- on mouseUp me
- if the platform contains "windows" then
- dirChar = "\"
- else
- dirChar = ":"
- end if
- if pFile = "PhotoSuite5SE.exe" then
- if the runMode contains "Author" then
- if the platform contains "Windows" then
- window().new("info")
- window("info").titlebarOptions.closebox = 1
- window("info").open()
- end if
- end if
- end if
- sprite(me.spriteNum).member = "install_knop_N"
- if pFile <> EMPTY then
- case pFile.word[1] of
- "<dir>":
- go(pFile.word[3], the moviePath & pFile.word[2])
- "<save>":
- desktop = baSysFolder("desktop")
- the itemDelimiter = dirChar
- destination = baGetFilename("save", desktop, the last item in pFile.word[2], "All files|*.*", 0, "Opslaan als", 0, 100, 100)
- baCopyFile(the moviePath & "data" & dirChar & pFile.word[2], destination, "IfNotExist")
- otherwise:
- if member("install text").text = "Opslaan als" then
- savefolder = baGetFolder("c:\temp", "Selecteer een folder om te bewaren:", 1, "Selecteer een folder", -1, 0)
- put savefolder
- Ok = baCopyFile(the moviePath & "DATA" & dirChar & "CARTOONS" & dirChar & pFile, savefolder & pFile, "Always")
- else
- if (member("titel_groep").text = "Webtools: blogging") and (pFile = "wordpress/wp.exe") then
- baOpenURL(the moviePath & "DATA" & dirChar & "wordpress", "maximised")
- baOpenFile(the moviePath & "DATA" & dirChar & pFile, "normal")
- else
- baOpenFile(the moviePath & "DATA" & dirChar & pFile, "normal")
- end if
- end if
- end case
- end if
- end
-